package main;

/**
 * Internal message for network controller
 * @author Mark van der Wal
 *
 */
public class NetEvent 
{
	// DATA MEMBERS
	public enum NetEventType
	{
		TYPE_CON,
		TYPE_DISCON,
		TYPE_RECEIVE,
		TYPE_NOTIFI
	}
	
	private NetEventType mEventID;
	private byte mMsgID;
	private String mMsg;
	private byte[] mData;
	
	// CONSTRUCTORS
	public NetEvent()
	{
		this.mMsgID = -1;
	}
	
	// METHODS
	public NetEventType getEventID() { return mEventID; }
	public byte[] getData() { return mData; }
	public String getMsg() { return mMsg; }
	public byte getMsgID() { return mMsgID; }
	
	public void setEventID(NetEventType type) { mEventID = type; }
	public void setData(byte[] data) { mData = data; }
	public void setMsg(String msg) { mMsg = msg; }
	public void setMsgID(byte id) { mMsgID = id; }
}
